<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>


<html>
<head>
   <%@ page isELIgnored="false" %>
   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
   <title>CAR RENTAL</title>
   <link rel="stylesheet" type="text/css" href="styles/Search-Catalogue-CSS.css">
     <script type="text/javascript">
      $("#go").click(function(){
	   $("input[type=radio]").hide();
        });
      </script>
</head>

<body>
          <div id="wrapper">
			<div id = "header">
				<%@include file="header.jsp" %>
			</div>
			<div id="content">
              <%@include file="menu.jsp" %>

         <c:if test="${msg!= null}">
			<font color="red" face="arial"> ${msg}</font>
		 </c:if>
 
  <table align="center">
  <c:forEach items="${carslist}" var="car">
       <tr style="outline:thin solid">
           <td width="400" height="200"><img src="images/cars/${car.carimgpath}" width="400" height="200"></img></td>
            <td width="275" Style="padding:10">
                <label> Car Model: ${car.carmodel}</label><br>
                <label> Car Manufacturer: ${car.carmake}</label><br>
          		<label> Car type: ${car.carclass}</label><br>
          		<label> Car Description:${car.cardescription} </label><br>
          		<label> Car color: ${car.carcolor}</label><br>
          		<label> Car Availabilty:${car.caravailablity} </label><br>
          		<label> Car Capacity: ${car.carcapacity}</label><br>
          		<label> Car Rental cost:$${car.carrentalcost} per day </label><br>
          		<label> Car Insarance cost: $${car.carinsurancecost}per day </label><br>
          		<input type="button" name="rentcar" value="RENT A CAR">
          </td>
       </tr> 
   </c:forEach>
   </table>  
       <div id="footer">
				<%@include file="footer.jsp" %>
			</div>
     
   </div>
</body>
</html>